<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_edus', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('user_id')->default(0);
            $table->string('school', 255)->nullable()->default('/')->comment('毕业院校');
            $table->string('type', 255)->nullable()->default('/')->comment('学习形式');
            $table->string('edu', 255)->nullable()->default('/')->comment('学历');
            $table->string('degree', 255)->nullable()->default('/')->comment('学位');
            $table->string('major', 255)->nullable()->default('/')->comment('专业');
            $table->string('cert')->nullable()->comment('毕业证书');
            $table->string('network_cert')->nullable()->comment('学信网证书');
            $table->string('degree_cert')->nullable()->comment('学位证书');
            $table->string('numbers')->nullable()->default('/')->comment('学历证书编号');
            $table->string('degree_numbers')->nullable()->default('/')->comment('学位证书编号');
            $table->string('system')->nullable()->default('/')->comment('学制');
            $table->date('in_date')->nullable()->comment('入学时间');
            $table->date('graduate_date')->nullable()->comment('毕业时间');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('user_edus');
    }
};
